/**
 * AlbumDto.java
 * com.sftj.web.fansorby.dto
 * Copyright (c) 2018, 北京科技有限公司版权所有.
*/

package com.sftz.modules.minapp.myhomework.dto;

import java.util.Date;

import lombok.Data;

import com.sftz.framework.util.HhmmssUtil;
import com.uxuexi.core.common.util.Util;

/**
 * 
 * @author   郝振斌
 * @Date	 2018年8月23日
 */
@Data
public class MyHomeworkDto {
	
	private Integer id;
	
	private Integer answerId;

	private String courseName;
	
	private String title;
	
	private Integer questionCnt;
	
	private Integer elapsedTime;//作业耗时
	
	private Integer alreadyAnsTime;
	
	private Integer answerTime;
	
	private Integer passScore;
	
	private String score;
	
	private Integer answerNumber;

	private Integer rule;
	
	private String acScore;
	
	private String ratingScore;//作业分值
	
	private String acRatingScore;//实际得分作业分值
	
	private String approver;
	
	private Date approverDate;

	private Date finishTime;//(试卷耗时字段)
	
	private Date endTime;

	private Integer status;
	
	private String nickName;
	
	//试卷、作业审批列表展示列字段
	private Integer userId;
	
	private Integer examId;

	private Integer homeworkId;
	
	private String timeHms;
	
	private Date postDate;//延期日期

	public String getTimeHms() {
		if(!Util.isEmpty(elapsedTime)){
			int i = (new Double(elapsedTime)).intValue();
			timeHms = HhmmssUtil.secToTime(i);
			return timeHms;
		}else{
			return "";
		}
	}

}
